package AC;

public class Diyi {
    public static void main(String[] args) {
        String a="AbcF2FHk30%$!";
        System.out.println(Integer.valueOf(a.replaceAll("[^0-9]","")));
}
}
